﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Demo03.Domain;

/// <summary>
/// 文章实体
/// </summary>
[Table("article")]
public class Article
{
    /// <summary>
    /// 主题
    /// </summary>
    [Key]
    [Column("id")]
    public int Id { get; set; }

    /// <summary>
    /// 标题
    /// </summary>
    [Column("title")]
    public string Title { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [Column("name")]
    public string Name { get; set; }
}